#ifndef QUIT_WIDGET_H
#define QUIT_WIDGET_H

#include <QWidget>
#include <QLabel>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QMouseEvent>
#include "button.h"
#include "select_button.h"

class Quit_Widget : public QWidget
{
public:
    QLabel *tip_label;
    QLabel *massge_label;
    QPushButton *close_btn;
    select_button *cancel_btn;
    select_button *restart_btn;
    select_button *reduction_btn;
    select_button *determine_btn;
    bool m_move;
    bool is_determine;
    QPoint m_startPoint;
    QPoint m_windowPoint;
    Quit_Widget(bool is_determine,QWidget *parent);
    ~Quit_Widget();
    void mousePressEvent(QMouseEvent *event);
    void mouseMoveEvent(QMouseEvent *event);
    void mouseReleaseEvent(QMouseEvent *event);
};

#endif // QUIT_WIDGET_H
